home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 7
/
Apprentice-Release7.iso
/
Demos
/
A.D. Software
/
OOFILE 1.3b4d6.sit
/
OOFILE 1.3b4d6
/
OOFRep demo
/
RepTestApp.h
< prev
next >
Wrap
Text File
|
1997-03-16
|
1KB
|
53 lines
#ifndef H_REPTSTAPP
#define H_REPTSTAPP
// ===========================================================================
// GrTstApp.h Derived heavily from the Dashboard Starter
// ===========================================================================
#include <LApplication.h>
#include "oofile.h"
#include "oofrep.h"
#include "ooftst02.h"
// Test data for GraphBand
DECLARE_CLASS(dbStudent)
dbChar Name, Subject;
dbLong Mark;
dbStudent() :
dbTable("Students"),
Name(39, "Name", kIndexCompress),
Subject(79, "Subject", kIndexCompress),
Mark("Mark", kIndexed)
{};
// my own data entry procedures
void Add(const char *name, const char *subject, const long mark);
void AddTestData();
};
class oofRepWindow;
class LWindow;
class RepTestApp : public LApplication {
public:
RepTestApp();
virtual ~RepTestApp();
virtual Boolean ObeyCommand(CommandT inCommand, void *ioParam = nil);
virtual void FindCommandStatus(CommandT inCommand,
Boolean &outEnabled, Boolean &outUsesMark,
Char16 &outMark, Str255 outName);
virtual void Initialize();
dbConnect_ram theDB;
dbPatients Patients;
dbVisits Visits;
dbStudent Students;
dbRelationship *PatientVisits;
};
#endif